<?php

use Faker\Generator as Faker;

$factory->define(App\Writing::class, function (Faker $faker) {
    return [
        'name' => $faker->title,
        'category_id'=>rand(0,1),
        'thumb_img'=>'image/November2017/MhQVX2ydNnqs3abVAmz4.png',
        'master'=>['image/November2017/v85dZ8Q7RhOYcnWAUAfh.png','image/November2017/cBDAvFkZe6WpSQYpyMO5.png','image/November2017/JuCqGeJHTMuimVn4mybu.png'],
        'desc'=>$faker->randomHtml(),
        'author_id'=>1,
        'video'=>'file/201711/379d88070e3ee07bed0b5c003f8aff4f.mp4'
    ];
});
